package com.igeek.car.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 汽车信息表
 * </p>
 *
 * @author Suzi
 * @since 2024-12-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("vehicles")
@ApiModel(value="Vehicles对象", description="汽车信息表")
public class Vehicles implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "汽车ID，主键，自增")
    @TableId(value = "VehicleID", type = IdType.AUTO)
    private Integer VehicleID;

    @ApiModelProperty(value = "汽车品牌")
    @TableField("Brand")
    private String Brand;

    @ApiModelProperty(value = "汽车型号")
    @TableField("Model")
    private String Model;

    @ApiModelProperty(value = "生产年份")
    @TableField("Year")
    private Integer Year;

    @ApiModelProperty(value = "价格，单位：元")
    @TableField("Price")
    private BigDecimal Price;

    @ApiModelProperty(value = "记录创建时间")
    @TableField("CreatedAt")
    private LocalDateTime CreatedAt;

    @ApiModelProperty(value = "记录更新时间")
    @TableField("UpdatedAt")
    private LocalDateTime UpdatedAt;


}
